﻿using System;
using System.Windows.Forms;

namespace iTunes_Playcount_Updater_GUI
{
    internal sealed partial class LoginError : UserControl
    {
        internal LoginError()
        {
            InitializeComponent();
        }

        private void Button1Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length == 0)
            {
                MessageBox.Show("Please enter your Last.fm username");
                return;
            }
            Form1.StaticVar.Username = textBox1.Text;
            Form1.StaticVar.LastFmDownload();
        }
    }
}
